Skip to content

Conversation

tolgacangoz
Copy link
Contributor

@tolgacangoz tolgacangoz commented Mar 14, 2024

This pull request updates the code to use PyTorch's conventional inplace functions for weight initialization, torch.nn.init.normal_(), instead of torch.nn.init.normal(); since diffusers follows PyTorch's design principles.
@sayakpaul

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am okay with the changes. Thank you!

@sayakpaul sayakpaul requested a review from yiyixuxu March 15, 2024 03:40
@yiyixuxu yiyixuxu merged commit e6a8492 into huggingface:main Mar 18, 2024
@tolgacangoz
Copy link
Contributor Author

Thanks for merging!

@tolgacangoz tolgacangoz deleted the update-inplace-functions branch March 18, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants